package tools

import (
	"strconv"
	"strings"
)

func StringToInt(str string) int {
	str = strings.ReplaceAll(str, "/", "")
	if str == "" {
		return 0
	}
	atoi, err := strconv.Atoi(str)
	if err != nil {
		return 0
	}
	return atoi
}
